		// Navigate to next page on swipe
		$( document ).on( "swipeleft", "#agenda", function() {
			$.mobile.changePage( "#feedback" );
		});

		$( document ).on( "swiperight", "#feedback", function() {
			$.mobile.changePage( "#agenda" );
		});

	



/* bei app start ausgeführt*/
$(function($){
	$.cookie('agenda_app', 'agenda_val', { expires: 7 });
	$('.ui-title').css("margin-left", "10%");
	$('.ui-title').css("margin-right", "10%");
	
 	debug =true;
	mocked=true;
	 
	var feedbackModels = new Array();
    var feedbackController = new FeedbackController();
	feedbackController.load();
	var model = feedbackController.model();
	console.log(model);
	var questions = model.printQuestions();
	console.log(questions);

	$('#feedbackContent').append(questions);

	$('#saveFeedback').on('click',function(){ 
	 		feedbackController.save();
	 });

	 $('.star').raty({
			half      : true,
			size      : 24,
			starHalf  : 'star-half-big.png',
			starOff   : 'star-off-big.png',
			starOn    : 'star-on-big.png'
		});

//	var firstEntry = new GridEntry("TestTitle","A102","17:00",['slot1','slot2']);
	agendaFriday = new AgendaDay("HotelSeminaris");
	agendaFriday.slots = agendaGrid.details.slots.slice();

	agendaTalk	 = new AgendaTalk();

//	$('#eintrag').append(firstEntry.printEntry());
	//var feedbackModel;
	//var feedbackControler = new FeedbackController(feedbackModel);
	//feedbackControler.load();
	
});

$(document).ready(function() {

	equalHeight($(".selectedTalk"));
	updateTemplateAgendaDay();
});

function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
